{template modoer_header}
<div id="body">
<div class="myhead"></div>
<div class="mymiddle">
    <div class="myleft">
        <!--{template 'menu','member','member'}-->
    </div>
    <div class="myright">
        <div class="myright_top"></div>
        <div class="myright_middle">
            <h3>我的小组</h3>
            <div class="mainrail">
                <ul class="optabs">
                    <li><a href="{url group/member/ac/$ac/op/my}">我管理的小组</a></li>
                    <li class="active"><a href="{url group/member/ac/$ac/op/joined}">我加入的小组</a></li>
                    <li class="act"><a href="{url group/member/ac/group/op/add/role/$role}">创建小组</a></li>
                </ul><div class="clear"></div>
                <table width="100%" cellspacing="0" cellpadding="0" class="maintable">
                    <tr class="thbg">
                        <th width="50">ID</th>
                        <th width="*">名称</th>
                        <th width="110">加入时间</th>
                        <th width="60">角色</th>
                        <th width="60">状态</th>
                        <th width="60">发帖量</th>
                        <th width="110">最近发帖</th>
                        <th width="160">操作</th>
                    </tr>
                    {dbres $list $val}
                    <tr>
                        <td>$val[gid]</td>
                        <td><a href="{url group/$val[gid]}">$val[groupname]</a></td>
                        <td>{date $val[jointime]}</td>
                        {eval $langtype='group_member_type_'.$val[usertype];}
                        <td>{print lang($langtype)}</td>
                        {eval $langstatus='group_member_status_'.$val[status];}
                        <td>{print lang($langstatus)} </td>
                        <td>$val[posts]</td>
                        <td>{if $val[lastpost]}{date $val[lastpost]}{else}未发帖{/if}</td>
                        <td>
                            {if $val[status]=='-1'}
                            禁言至{date $val[bantime],'Y-m-d'}
                            {else}
                            <a href="{url group/member/ac/$ac/op/quit/gid/$val[gid]}" 
                                onclick="return confirm('您确定要从这个小组中退出吗?');">退出</a>
                            {/if}
                            
                        </td>
                    </tr>
                    {/dbres}
                    {if !$list}
                    <tr>
                        <td colspan="7"><div style="padding:30px 0;text-align:center;">暂无信息.</div></td>
                    </tr>
                    {/if}
                </table>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<div class="mybottom"></div>
</div>
<!--{eval footer();}-->